/**
 * @name Config
 * @description 项目配置
 */

// 应用名
export const APP_TITLE = 'LOONG3';

// 无菜单默认跳转路由
// export const DEFAULT_ROUTE = '/app/home'

// 本地服务端口
export const VITE_PORT = 3001;

// 是否开启mock
export const IS_USE_MOCK = false

// axios development 模式下请求携带的前缀
export const API_PREFIX = IS_USE_MOCK ? '/loong3/mock/api' : '/loong3/api';

// serve
export const API_BASE_URL = '/loong3/api';
// export const API_TARGET_URL = 'https://test.lymatrix.com/dch-server';
export const API_TARGET_URL = 'http://127.0.0.1:4523/m1/2837370-0-default';

// mock
export const MOCK_API_BASE_URL = '/loong3/mock/api';
export const MOCK_API_TARGET_URL = 'http://localhost:3001';

// iconfontUrl
export const ICONFONTURL = '//at.alicdn.com/t/font_3004192_9jmc1z9neiw.js'; // 去色版

// 包依赖体积分析
export const ANALYSIS = false;

// 代码压缩
// export const COMPRESSION = true;

// 删除 console
export const VITE_DROP_CONSOLE = true;

// 响应拦截器 success 成功 error 请求错误  fail 请求失效退出登录
enum responseType {
  success = 200,
  error = 500,
  fail = 401
}

// 是否展示右下角悬浮窗
export const SHOWPROUPLOAD = false

// 主题项目配置窗口
export const setTing:'top'|'right'|'none' = 'top'

// 开启中英文切换
export const SHOWLANGUAGE = true

// 主题色
export const themeList = ['#1890ff','#f5222d','#FA541C','#FAAD14','#f99d34','#13C2C2','#52C41A','#2F54EB','#722ED1']

export const RESPONSE_TYPE = responseType

// 不填则默认开启hash路由填则开启history路由
export const BASE = false
